home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 3289 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: nntp.teleport.com!sschaem
  2. From: sschaem@teleport.com (Stephan Schaem)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: 90 degree rotation
  5. Date: 12 Feb 1996 13:38:07 GMT
  6. Organization: Teleport - Portland's Public Access (503) 220-1016
  7. Distribution: world
  8. Message-ID: <4fnfrv$o0m@maureen.teleport.com>
  9. References: <DMEpMn.Cvs.0.-s@cs.vu.nl> <4fev39$jid@maureen.teleport.com> <4ffpof$dvl@sunsystem5.informatik.tu-muenchen.de>
  10. NNTP-Posting-Host: linda.teleport.com
  11. X-Newsreader: TIN [version 1.2 PL2]
  12.  
  13. Juergen "Rally" Fischer (fischerj@informatik.tu-muenchen.de) wrote:
  14.  
  15. : |> 
  16. : |>  Much faster, the following is basic wall tmaping? 
  17. : |> 
  18. : |>  REPEAT 16
  19. : |>  move.b    (a0,d0.w),(a1)
  20. : |>  addx.l    d1,d0
  21. : |>  adda.l    a2,a1
  22. : |>  ENDR
  23.  
  24. : yep, a wallmapper.
  25.  
  26.  Well, I put it there so the original poster can show how it can be
  27.  so 'much faster'... 
  28.  
  29. : |> 
  30. : |>  Even if you trandform this to write long (Would be slower) how do you
  31. : |>  handle your chunky buffer? Do you tmap 1 line and c2p it? 
  32.  
  33. : nooo. only c2p complete screen after render.
  34.  
  35.  Then this make no sense... because you will have to write your floor
  36.  verticaly in the buffer :) you traded walls for floor And need that extra
  37.  screen rotation.
  38.  
  39. : |>  You would use rotated tmap for walls only.... because you step verticaly
  40. : |>  in your display buffer, and horizontaly in your texture buffer.(Just
  41. : |>  a speedup for the inner mapping loop)
  42.  
  43. : ah yes that's it: you go the horizontal way in _source_ for 
  44. : adressing reasons.
  45.  
  46.  Yep, in the above example using non rotated tmap would require 2 extra
  47.  instructions... Unless we can scale by 256:) move.b (a0,d0.w*256),(a1)+ 
  48.  
  49.  Stephan
  50.  
  51.